<template>
	<view class="updateProject">
		<view v-for="(item,index) in projects" :key="index">
			<view class="parent">
				<view style="padding: 20rpx 20rpx 20rpx 60rpx;">
					<view v-if="true" class="pass">未通过</view>
					<view class="title-status">
						<view class="title-text">测试测试</view>
						<view v-if="true" style="color: #df0000;font-size: 32rpx;">待修改</view>
					</view>
					<view class="time-address">
						<span>2020-11-05</span>
						<span>-</span>
						<span>2020-11-06</span>
						<span style="margin-left: 20rpx;">地址</span>
					</view>
					<view class="content">
						测试测试
					</view>
					<view class="images">
						<image src="../../../static/logo.png"></image>
						<image src="../../../static/logo.png"></image>
						<image src="../../../static/logo.png"></image>
					</view>
					<view style="color: #df0000;">
						未通过原因
					</view>
				</view>
			</view>
		</view>
		<view class="add">
			<view class="btn">
				添加项目经验
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				projects: [1, 2, 3],
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.updateProject {
		padding-bottom: 120rpx;
		background: #dadada;

		.parent {
			background: #FFFFFF;
			position: relative;
			overflow: hidden;
			margin-bottom: 20rpx;

			.pass {
				width: 170rpx;
				position: absolute;
				top: 23rpx;
				left: -46rpx;
				text-align: center;
				padding: 0 20rpx;
				background: #ff0000;
				color: #FFFFFF;
				font-size: 32rpx;
				-moz-transform: rotate(-45deg);
				-webkit-transform: rotate(-45deg);
				-o-transform: rotate(-45deg);
				-ms-transform: rotate(-45deg);
				transform: rotate(-45deg);
			}

			.title-status {
				display: flex;
				justify-content: space-between;

				.title-text {
					font-size: 32rpx;
					font-weight: bold;
				}
			}

			.time-address {
				line-height: 60rpx;
				color: #7f7f7f;
			}

			.content {
				line-height: 60rpx;
			}

			.images {
				display: flex;
				flex-wrap: wrap;

				image {
					margin-right: 40rpx;
					margin-bottom: 20rpx;
					width: 160rpx;
					height: 160rpx;
					border-radius: 20rpx;
				}
			}

			.more-status {
				display: flex;
				justify-content: center;
				color: #FFFFFF;
				align-items: center;
				padding-bottom: 20rpx;
				position: relative;

				.corner-mark {
					background: #b50000;
					color: #FFFFFF;
					padding: 0 10rpx;
					border-radius: 999rpx;
					position: absolute;
					top: -30rpx;
					left: 503rpx;
				}

				.more-image {
					width: auto;
					display: flex;
					align-items: center;
					line-height: 60rpx;
					padding: 0 20rpx;
					background: #007AFF;
					border-radius: 10rpx;
					letter-spacing: 4rpx;

					image {
						width: 30rpx;
						height: 30rpx;
					}
				}
			}
		}

		.add {
			width: 100vw;
			padding: 30rpx;
			position: fixed;
			bottom: 0;
			left: 0;
			text-align: center;
			background: #dadada;
			.btn{
				background: #007AFF;
				font-size: 32rpx;
				line-height: 60rpx;
				color: #FFFFFF;
				border-radius: 16rpx;
			}

		}
	}
</style>
